<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>惊蛰的博客 </title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <style>
        @import url('/css/post-card.css');
        @import url('/css/main.css');
        @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;1,400;1,600&family=Roboto+Slab:wght@700&display=swap');
    </style>
    <style>
        body {
            font-family: Montserrat, sans;
        }

        .page-footer {
            color: var(--text-p3);
        }

        .sitemap {
            display: flex;
            justify-content: space-between;
            margin: .5rem 0 2rem;
            display: grid;
            grid-gap: 1rem 1rem;
            grid-auto-flow: column dense;
        }

        .sitemap-group {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .sitemap-group>.fs14 {
            margin: .5rem 0;
        }

        .page-footer .sitemap .sitemap-group>a {
            margin: .2rem 0;
            color: var(--text-p3);
        }

        .page-footer .text p {
            margin: 4px 0;
            line-height: 1.2;
        }
    </style>
    <script src="https://lib.baomitu.com/jquery/3.6.0/jquery.min.js"></script>
    <script src="/js/index.js"></script>
    <link href="https://cdn.bootcdn.net/ajax/libs/jquery.scrollbar/0.2.9/jquery.scrollbar.min.css" rel="stylesheet">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery_lazyload/1.9.7/jquery.lazyload.min.js"></script>
<meta name="generator" content="Hexo 5.4.0"></head>

<body>
    


<div class="l_body">
    <div class="l_main list">
        
<div class="nav-wrap mobile-hidden">
    <nav class="sub post cap header1">
        <a  href="/">最近发布</a>
        <a 
            href="/wiki/">分类</a>
        <a class="active" 
            href="/notes/">标签</a>
        <a href="/bibi/">说说</a>

    </nav>
    <div class="post-body-title header2">
        
    </div>
</div>

<style>
    .sub2 {
        display: flex;
        flex-direction: column;
        position: absolute;
        z-index: 11;
        background:#ffff!important;
        border-radius: 5px;
    }

    .sub2 a{
        display: block;
        margin-left: 0px!important;
        border-radius: 5px;
        margin: 5px 0 3px 0!important;
    }
</style>


        <div class="l_categories_list">
            
            <ul>
                
                
                <li>
                    <a href="/tags/jenkins/" title="jenkins">
                        <span>jenkins</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/算法/" title="算法">
                        <span>算法</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x4</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/JavaScript/" title="JavaScript">
                        <span>JavaScript</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x5</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/operational-transformations/" title="operational-transformations">
                        <span>operational-transformations</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x4</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/JS/" title="JS">
                        <span>JS</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x4</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/JAVA/" title="JAVA">
                        <span>JAVA</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/Trilateration/" title="Trilateration">
                        <span>Trilateration</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/vue/" title="vue">
                        <span>vue</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x2</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/Google/" title="Google">
                        <span>Google</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/pjax/" title="pjax">
                        <span>pjax</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/电影/" title="电影">
                        <span>电影</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/八佰/" title="八佰">
                        <span>八佰</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/CSS/" title="CSS">
                        <span>CSS</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/OT/" title="OT">
                        <span>OT</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/前端/" title="前端">
                        <span>前端</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x3</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/css/" title="css">
                        <span>css</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x2</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/JS沙箱/" title="JS沙箱">
                        <span>JS沙箱</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/shake/" title="shake">
                        <span>shake</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/docker/" title="docker">
                        <span>docker</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/nginx/" title="nginx">
                        <span>nginx</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x2</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/rtmp/" title="rtmp">
                        <span>rtmp</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/ffmpeg/" title="ffmpeg">
                        <span>ffmpeg</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x2</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/DoraemonKit/" title="DoraemonKit">
                        <span>DoraemonKit</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/滴滴/" title="滴滴">
                        <span>滴滴</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/BIO-NIO-AIO/" title="BIO/NIO/AIO">
                        <span>BIO/NIO/AIO</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/插件/" title="插件">
                        <span>插件</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/HTTP-HTTPS/" title="HTTP/HTTPS">
                        <span>HTTP/HTTPS</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/TCPIP/" title="TCPIP">
                        <span>TCPIP</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/element-ui/" title="element-ui">
                        <span>element-ui</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
                
                <li>
                    <a href="/tags/nodejs/" title="nodejs">
                        <span>nodejs</span>
                        <span style="margin-left: 0.5rem;color: var(--text-p1);">x1</span>
                    </a>
                </li>
                
                
            </ul>
            
        </div>
        <div class="page-footer reveal fs12">
    <hr>
    <div class="sitemap">
        <div class="sitemap-group">
            <span class="fs14">博客</span>
            <a href="/">近期发布</a>
            <a href="/wiki/">分类</a>
            <a href="/notes/">标签</a>
            <a href="/archives/">归档</a>
        </div>
        <div class="sitemap-group">
            <span class="fs14">社交</span>
            <a target="_blank" rel="external nofollow noopener noreferrer" href="">GitHub</a>
            <a target="_blank" rel="external nofollow noopener noreferrer" href="">GitLab</a>
        </div>
        <div class="sitemap-group">
            <span class="fs14">更多</span>
            <a href="/about/">关于本站</a>
            <a href="/bibi/">哔哔</a>
            <a target="_blank" rel="external nofollow noopener noreferrer" href="https://image.jingzhe.xyz">图床</a>
        </div>
    </div>
    <div class="text">
        <p>本博客所有文章除特别声明外，均采用
            <a target="_blank" rel="external nofollow noopener noreferrer"
                href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
                CCBY-NC-SA 4.0
            </a>
            许可协议，转载请注明出处。
        </p>
    </div>
</div>
    </div>
    <aside class="l_right">
        
<header class="header">
    <div class="logo-wrap">
        <a class="avatar" href="/about/">
            <img class="avatar" src="" data-original="https://ae01.alicdn.com/kf/Ua26a9ebfe30847ff8d4d7d7c7647c61cH.jpg"></a>
        <a class="title" href="/">
            <div class="main">惊蛰</div>
            <div class="sub normal cap"></div>
            <div class="sub hover cap" style="opacity:0">jingzhe.xyz</div>
        </a>
    </div>
    <nav class="menu dis-select">
        <a class="nav-item " href="/">博客</a>
        <a class="nav-item " href="/archives/">归档</a>
        <a class="nav-item " href="/about/">关于</a>
    </nav>
</header>
<script>
    $(function () {
        // https://v1.hitokoto.cn/?c=f&encode=text&max_length=8
        $.ajax({
            url: "https://v1.hitokoto.cn/?c=f&encode=text&max_length=10&min_length=5&c=i",
            success: function (result) {
                $(".normal").html(result);
            }
        });

    })
</script>
<div class="widgets">
    <div class="widget-wrap" id="markdown">
    <div class="widget-header cap dis-select">
        <span class="name">网站公告</span>
    </div>
    <div class="widget-body fs14">
        <p>👋 感谢您的光临，这里是自留地</p>
    </div>
</div>
    
<div class="widget-wrap" id="recent">
    <div class="widget-header cap dis-select"><span class="name">最近更新</span></div>
    <div class="widget-body fs14">
        
        <div class="line"></div>
        <a class="more-item" href="posts/92164fa6.html">
            <div class="cap">
                <time>2021-10-20</time>
                <span></span></div>
            <span class="title">OT算法的协同文档制作的底层基础架构记录</span>
        </a>
        <div class="line"></div>
        
        <div class="line"></div>
        <a class="more-item" href="posts/8a4a471e.html">
            <div class="cap">
                <time>2021-10-21</time>
                <span></span></div>
            <span class="title">OT算法-前端锁的解决方案</span>
        </a>
        <div class="line"></div>
        
        <div class="line"></div>
        <a class="more-item" href="posts/116a586f.html">
            <div class="cap">
                <time>2021-10-21</time>
                <span></span></div>
            <span class="title">OT算法-关于版本冲突相差过大的解决方案</span>
        </a>
        <div class="line"></div>
        
    </div>
</div>

<div class="links-of-blogroll motion-element {{ "links-of-blogroll-" + theme.recent_posts_layout  }}">
    <ul class="links-of-blogroll-list">
    </ul>
</div>


    <div class="widget-wrap" id="webinfo">
    <div class="widget-header cap dis-select"><span class="name">网站信息</span></div>
    <div class="widget-body fs14">
        <div>
            <span class="title">文章总数：</span><span class="content">26篇</span>
        </div>
        <div>
            <span class="title">网站字数：</span><span class="content">32.5k字 </span>
        </div>
        <div>
            <span class="title">奶茶状态：</span><span class="content">离线</span>
        </div>
    </div>
</div>
    <footer class="footer dis-select">
    <div class="social-wrap">
        <a class="social" title="GitHub" href="https://github.com/xaoxuu" target="_blank"
            rel="external nofollow noopener noreferrer"><img class="lazy entered loaded"
                src="https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/08a41b181ce68.svg"
                data-src="https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/08a41b181ce68.svg"
                data-ll-status="loaded"></a><a class="social" title="Spotify"
            href="https://open.spotify.com/user/xaoxuu" target="_blank"
            rel="external nofollow noopener noreferrer"><img class="lazy entered loaded"
                src="https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/3845874.svg"
                data-src="https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/3845874.svg"
                data-ll-status="loaded"></a><a class="social" title="Unsplash"
            href="https://unsplash.com/@xaoxuu" target="_blank"
            rel="external nofollow noopener noreferrer"><img class="lazy entered loaded"
                src="https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/3616429.svg"
                data-src="https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/3616429.svg"
                data-ll-status="loaded"></a><a class="social" title="Comments" href="/about/#comments"
            rel="noopener noreferrer"><img class="lazy entered loaded"
                src="https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/942ebbf1a4b91.svg"
                data-src="https://cdn.jsdelivr.net/gh/cdn-x/placeholder@1.0.3/social/942ebbf1a4b91.svg"
                data-ll-status="loaded"></a></div>
</footer>
</div>
    </aside>
</div>
<style>
    .l_categories_list ul {
        display: flex;
        flex-direction: row;
        align-content: flex-start;
        flex-wrap: wrap;
    }

    .l_categories_list li {
        display: flex;
        border-radius: 4px;
        padding: 0.5rem 0rem;
        margin: 0.5rem 0.5rem;
        background: var(--card);
        box-shadow: 0 2px 8px 0 rgb(0 0 0 / 2%);
    }

    .l_categories_list li a {
        display: flex;
        width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0rem 1.5rem;
        color: var(--text-p3);
    }

    .l_categories_list li a:hover {
        color: var(--text-p1);
    }
</style>
    <div class="loading-div" id="loading" style="display: none;">
    <div class="loading">
        <svg id="stage" viewBox="0 0 500 500" preserveAspectRatio="xMidYMid meet" stroke="#fff" stroke-width="3"
            stroke-linecap="round" fill="none"></svg>
        <span>加载中...</span>
    </div>
</div>
<style>
    .loading-div {
        position: absolute;
        display: flex;
        top: 0px;
        width: 100%;
        height: 100%;
        align-items: center;
        z-index: 20;
        animation-name: fadeIn;
        animation-duration: 2s;
        animation-fill-mode: forwards;
    }

    /*动画效果*/
    @keyframes fadeIn {
        from {
            backdrop-filter: blur(0px);
            background: rgba(0, 0, 0, 0);
        }

        to {
            backdrop-filter: blur(2px);
            background: rgb(0, 0, 0, 0.5);
        }
    }

    /*动画效果*/
    @keyframes fadeIn1 {
        from {
            filter: blur(1px);
        }

        to {
            filter: blur(0px);
        }
    }

    .loading {
        color: #fff;
        width: 250px;
        height: 250px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        align-content: center;
        flex-wrap: nowrap;
        flex-direction: column;
        animation-name: fadeIn1;
        animation-duration: 2s;
        animation-fill-mode: forwards;
    }

    svg {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        /* background: #000; */
    }
</style>
<script src="https://lib.baomitu.com/gsap/3.7.1/gsap.min.js"></script>
<script>
    let pts = [],
        nPts = 12,
        lineLength = 60,
        timeScale = 0.5

    const radius = 180,
        tl = gsap.timeline()

    for (let i = 0; i < nPts; i++) { // plot points + add circles
        const c = document.createElementNS("http://www.w3.org/2000/svg", "circle"),
            angle = (i / nPts * Math.PI * 2) - Math.PI / 2,
            x = Math.cos(angle) * radius,
            y = Math.sin(angle) * radius

        pts.push(x.toFixed(2) + ',' + y.toFixed(2) + ' ')

        gsap.set(c, {
            x: 250,
            y: 250,
            scale: 0.8,
            attr: {
                class: 'c' + i,
                r: 3,
                cx: x,
                cy: y,
                fill: '#fff',
                stroke: 'none'
            }
        })

        stage.appendChild(c);
    }


    for (let i = 0; i <= nPts; i++) { // add paths + animate
        const p = document.createElementNS("http://www.w3.org/2000/svg", "path")

        gsap.set(p, {
            x: 250,
            y: 250,
            attr: {
                class: 'line' + i,
                d: 'M' + pts[i] + ' C' + gsap.utils.wrap(pts, [i + 2]) + ' ' + gsap.utils.wrap(pts, [i - 5]) +
                    ' ' + gsap.utils.wrap(pts, [i - 2]),
                // d:'M'+pts[i]+' c 0,0 '+gsap.utils.wrap(pts,[i-nPts/2])+' '+gsap.utils.wrap(pts,[i-3]),
                'stroke-dasharray': lineLength + ' ' + lineLength,
                'stroke-dashoffset': lineLength
            },
        });

        stage.appendChild(p);

        const lineTL = gsap.timeline({
                repeat: -1,
                defaults: {
                    duration: 0.4
                }
            })
            .to(p, {
                attr: {
                    'stroke-dashoffset': -lineLength
                },
                ease: 'expo.inOut',
                duration: 0.6
            }, 0.4)

        if (i < nPts) {
            lineTL.to('.c' + i, {
                scale: 1.2,
                ease: 'expo.inOut'
            }, 0.1)
            lineTL.to('.c' + i, {
                scale: 0.8,
                ease: 'expo.in'
            }, 0.5)
        }

        tl.add(lineTL, 1 - i / nPts);
    }

    tl.play(5).timeScale(timeScale)
</script>
<script>
    $(function () {
        // loadingShow()
    })

    function loadingShow() {
        $("#loading").show();
    }

    function loadingHide() {
        $("#loading").hide();
    }
</script>

    <!-- <script src="https://cdn.bootcdn.net/ajax/libs/jquery.scrollbar/0.2.9/jquery.scrollbar.min.js"></script> -->
    <script>
        // $(document).ready(function () {
        //     $('.l_body').scrollbar({
        //         barWidth: 10, //滚动条的宽度(这里根据需要写数值即可，不设置是10,即默认10px)
        //         position: "x,y", //写“x”代表只出水平滚动条，写“y”表示只出垂直滚动条，写“x,y”则出水平和垂直滚动条（只有在内容超出容器时才出现滚动条）
        //         wheelDis: 15 //滚轮滚动一次向下或向上滚动的距离，默认是15，可根据需要修改数值
        //     });
        // });
    </script>
    <script>
        $('img').lazyload({
            threshold: 0,
            failure_limit: 0,
            event: "scroll", //触发事件
            effect: "show", //显示方式
            container: window, //容器
            data_attribute: "original", //属性
            skip_invisible: true,
            appear: null,
            load: null,
            placeholder: ""
        });
    </script>
<script>
            window.imageLazyLoadSetting = {
                isSPA: false,
                preloadRatio: 3,
                processImages: null,
            };
        </script><script>window.addEventListener("load",function(){var t=/\.(gif|jpg|jpeg|tiff|png)$/i,r=/^data:image\/[a-z]+;base64,/;Array.prototype.slice.call(document.querySelectorAll("img[data-original]")).forEach(function(a){var e=a.parentNode;"A"===e.tagName&&(e.href.match(t)||e.href.match(r))&&(e.href=a.dataset.original)})});</script><script>!function(n){n.imageLazyLoadSetting.processImages=o;var e=n.imageLazyLoadSetting.isSPA,i=n.imageLazyLoadSetting.preloadRatio||1,r=Array.prototype.slice.call(document.querySelectorAll("img[data-original]"));function o(){e&&(r=Array.prototype.slice.call(document.querySelectorAll("img[data-original]")));for(var t,a=0;a<r.length;a++)0<=(t=(t=r[a]).getBoundingClientRect()).bottom&&0<=t.left&&t.top<=(n.innerHeight*i||document.documentElement.clientHeight*i)&&function(){var t,e,n,i,o=r[a];t=o,e=function(){r=r.filter(function(t){return o!==t})},n=new Image,i=t.getAttribute("data-original"),n.onload=function(){t.src=i,e&&e()},t.src!==i&&(n.src=i)}()}o(),n.addEventListener("scroll",function(){var t,e;t=o,e=n,clearTimeout(t.tId),t.tId=setTimeout(function(){t.call(e)},500)})}(this);</script></body>